import java.util.List;
import modelo.pojos.*;

import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.ViewScoped;
//import org.primefaces.showcase.domain.Car;
//import org.primefaces.showcase.service.CarService;

@ManagedBean
@ViewScoped
public class DataGridView {
	
	@ManagedProperty("#{pruebaService}")
    private PruebaService service;
	
	public PruebaService getService() {
		return service;
	}

	public void setService(PruebaService service) {
		this.service = service;
	}


	private List<Personas> personas;
	
	@PostConstruct
    public void init() {
        personas = service.createPersonas(5);
    }
    
    public List<Personas> getPersonas() {
		return personas;
	}

	public void setPersonas(List<Personas> personas) {
		this.personas = personas;
	}

	public Personas getPersona() {
		return persona;
	}

	public void setPersona(Personas persona) {
		this.persona = persona;
	}


	private Personas persona;
 
  

}
